Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

braffas

Feature request: Exclude URL patterns from full page cache

Recommended Posts

Hello

It would be nice if it was possible to exclude some URL patterns from the full page cache.

I have had a few modules that refused to work even with dynamic hooks, so i had to disable them in the controller->run method

Like this:

        if (stripos($_SERVER['REQUEST_URI'], 'gift-cards/gift-card') !== false) {
            unset($cacheableControllers[array_search('product', $cacheableControllers)]);
        }

The comment on the method says "this method should not be overridden!" so right now I'm stuck with editing the core.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...