I'm using Stash's static cache on a site and have wrapped my Freeform tags in {stash:nocache}
but whenever I try to submit a form, I get taken to a page like /?ACT=XX with the error No input file specified.
stash_file_sync
is set to false and I'm using the .htaccess rules printed out in the CP:
#################################################################################
# START MUSTASH STATIC CACHE RULES
# -------------------------------------------------------------------------------
# default_site
# -------------------------------------------------------------------------------
# Exclude image files
RewriteCond $1 !\.(gif|jpe?g|png|ico)$ [NC]
# We only want GET requests
RewriteCond %{REQUEST_METHOD} GET
# Exclude CSS/ACT EE URLs and 'preview'
RewriteCond %{QUERY_STRING} !^(css|ACT|URL|preview)
# Uncomment this if you want to disable static caching for logged-in users
#RewriteCond %{HTTP_COOKIE} !exp_sessionid [NC]
# Remove index.php from conditions
RewriteCond $1 ^(index.php/)*(.*)(/*)$
# Check if cached index.html exists
RewriteCond ../static_cache/1/$2/index.html (.*\.(.*))$
RewriteCond %1 -f
# Rewrite to the cached page
RewriteRule ^(index.php/*)*(.*)(/*) /static_cache/1/$2/index.%2 [L]
# END MUSTASH STATIC CACHE RULES
#################################################################################
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
Each template looks similar to:
{stash:embed
name="home"
file_name="views:home"
process="static"
context="@URI"
}
Also, is anyone using Mustash but not getting a main menu item which gives you access to create cache-breaking rules? I can access different settings by navigation to the Mustash module or extension, but that doesn't give me a link to create cache-breaking rules.