Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

4 votes
Accepted

Clearing the cache via API

ref: https://docs.expressionengine.com/latest/development/legacy/libraries/cache.html#class-methods ee()->cache->delete('/myaddon/');
user avatar
  • 1,987
3 votes

Enable Memcached in EE 2.9.2: problems

Sorry for the trouble. This is an issue in EE 2.9 and will be fixed in the next release. For now, you can get around it by specifying the cache driver in your config.php: $config['cache_driver'] = '...
user avatar
3 votes
Accepted

Unserialize Error in drivers/cache

After speaking with Derek privately I was able to resolve the issue which is a permissions error. The steps taken to solve this are: Via FTP/SSH navigate to system/expressionengine/cache and delete ...
user avatar
3 votes
Accepted

a less expensive way of grouping entries by category

So my experimentation here brought me to Stash. Much more succinct now and gives me everything I need in just 66 queries before caching :) {exp:channel:entries dynamic="no" channel="articles"} {...
user avatar
  • 2,473
2 votes

CE Cache Static not serving cached home page

I think I've found the issue and solution. It seems sometimes mod_dir will be setup to do it's thing before mod_rewrite. This means that %{REQUEST_URI} for the homepage could end up being index.php ...
user avatar
2 votes
Accepted

Browser Caching

Since my guess in the comments was correct I am adding it as an answer: Check that mod_expires is installed in Apache (one way to quickly check in EE is to look at the phpinfo page in the control ...
user avatar
  • 1,079
1 vote
Accepted

What's the correct syntax for setting up memcached caching driver in EE 2.8+ with socket?

I'm glad you asked! $config['cache_driver'] = 'memcached'; $config['memcached'] = array( array( 'host' => '/var/tmp/memcached.sock', 'port' => 0, 'weight' => 1, ) ); Adding ...
user avatar
1 vote

Freeform Pro issue with Stash and CE Cache

We never recommend caching a form because it has a unique identifier from ExpressionEngine for CSRF protection that's generated per page as well as a unique identifier from Freeform used to prevent ...
user avatar
  • 6,139
1 vote

a less expensive way of grouping entries by category

Interesting approach. I would typically have used Stash to set a list of all my entries (capturing categories for each of them) set a list of all the categories I want And then used nested {exp:...
user avatar
1 vote
Accepted

Does native EE caching support configurable redis db indexes?

After some research and digging into the actual Cache_redis.php file, I've found that there is currently not a way to specify a DB index without modifying the ExpressionEngine Core. The only way to ...
user avatar
1 vote

Control Panel won't log out, loops when logging back in randomly

The issue is with the ExpiresDefault. Because it's a catch-all I believe it's setting bad expire headers on the cookies. I was having the same exact issue and removed only that line and all was well!
user avatar
1 vote

Control Panel won't log out, loops when logging back in randomly

Are you using a multi config environment? If you are, depending on how it's set up it may be looking for www. I ran into this problem, (couldn't log in) but adding this to the .htaccess fixed it. ...
user avatar
  • 413
1 vote
Accepted

How to cache Stash Data when EE native template caching doesn't work

Have a look at the caching options available with stash. See Mustash for cache breaking rules. The most basic option here would be to cache the lists when creating them with append list. You might ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible