Hot answers tagged

2

Static caching A static cached page is just plain old HTML, it doesn't pass through EE or PHP at all. You cannot therefore escape regions of the page from caching: https://github.com/croxton/Stash/wiki/%7Bexp%3Astash%3Astatic%7D Freeform forms cannot be cached as they require a token to be generated for each user that views the form, and that is only ...


2

Carefully "unescape" the variables you want to be cached, so e.g. {stash:nocache} <div> {if {current_time format="%U"} - {/stash:nocache}{event_time format="%U"}{stash:nocache} < -86400} {/stash:nocache}{facebook_link}{stash:nocache} {/if} {if {current_time format="%U"} - {/stash:nocache}{event_time format="%U"}{stash:nocache} < 86400 &...


1

The developer gave a solution here: https://devot-ee.com/add-ons/support/mustash/viewthread/15161 Change the following code on line line 664 in mcp.mustash.php: 'group_id' => $group[$index], To: 'group_id' => ($group[$index] == "NULL" ? NULL : $group[$index]),


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