Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.

If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping

Answers may be delayed for posts that do not include sufficient information.

pawtucket tmp


How does the pawtucket/app/tmp system work? Is it really normal to have many many thousands of directories generated every day? Our installation of Pawtucket stopped working a couple of months ago due to the enormous amount of directories and files in the tmp directory. I manually deleted all the directories (the system couldn't build the list) and it started working again. Now we empty the collectiveaccessCache directory once a day through Crontab, but sometimes Pawtucket generate so many directories int the tmp directory that a rm -r command can't delete them.

What is best practice here?




  • We use a modular cache system that support several back-ends, includes the file system (the default), redis and memcached. The file caching system is taken from Doctrine, and while it's simple to implement it does indeed generate a ton of files. The file back-end is high on my list of things that need to be replaced.

    The best practice at this time, especially for sites that see a lot of traffic, is to use redis for caching. It's packaged for most, if not all, current Linux distributions and Mac OS, and generally just works. Once it's installed and running you just change the cache settings in setup.php and you should be good to go.

  • There's now an experimental branch on GitHub (dev/recache) with a different caching layer, that hopefully performs better than Doctrine when used with the file system. As with Doctrine it also supports REDIS, Memcached and APC. There's still a bit more work to do, then we'll put it on a few of our real world systems and see how well it works in practice.

  • Ok!

    I'll check if our Ubuntu 16.4 (TLS) installation has redis installed and give it a go.

  • FWIW, the new branch now supports sqlite as well. I'm going to test that this week and see how well it performs. In principal, sqlite should be almost as easy as the file cache to get running but without the performance issues on busy sites.
  • edited November 25

    Seth: We are having a similar issue of cache files not deleting and redis as the cache resolves it on my local instance--thankyou! The production site is hosted on a server that requires a socket connection. Is it possible to configure using a socket instead of using hostname and port? Thanks! BB

Sign In or Register to comment.