Commit 6a0290bb authored by Jordan Michaels's avatar Jordan Michaels

cleanup

parent 61e6eb47
No preview for this file type
......@@ -34,7 +34,7 @@ class Vivio_Swift_Config_Settings
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_is','');//Checkbox
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_is_values',array());//array list
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_ends_with','');//Checkbox
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_ends_with_values',array('.html','.css','.js','.png','.jpg','.jpeg','.gif','.xml','.json'));//array list
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_ends_with_values',array('.html','.png','.jpg','.jpeg','.gif','.xml','.json'));//array list
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_contains','');//Checkbox
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_contains_values',array());//array list
$vivio_swift_global->configs->add_value('vivio_swift_cache_enable_custom_rules','');//Checkbox
......@@ -78,7 +78,7 @@ class Vivio_Swift_Config_Settings
$vivio_swift_global->configs->set_value('vivio_swift_cache_exclude_path_is','');//Checkbox
$vivio_swift_global->configs->set_value('vivio_swift_cache_exclude_path_is_values',array());//array list
$vivio_swift_global->configs->set_value('vivio_swift_cache_exclude_path_ends_with','');//Checkbox
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_ends_with_values',array('.html','.css','.js','.png','.jpg','.jpeg','.gif','.xml','.json'));//array list
$vivio_swift_global->configs->add_value('vivio_swift_cache_exclude_path_ends_with_values',array('.html','.png','.jpg','.jpeg','.gif','.xml','.json'));//array list
$vivio_swift_global->configs->set_value('vivio_swift_cache_exclude_path_contains','');//Checkbox
$vivio_swift_global->configs->set_value('vivio_swift_cache_exclude_path_contains_values',array());//array list
$vivio_swift_global->configs->set_value('vivio_swift_cache_enable_custom_rules','');//Checkbox
......
......@@ -242,9 +242,6 @@ class Vivio_Swift_Utility_Htaccess
$rules = '';
$rules .= Vivio_Swift_Utility_Htaccess::$vivio_swift_basics_marker_start . PHP_EOL; //Add feature marker start
// exclude certain file types
$rules .= 'RewriteCond %{REQUEST_URI} !\.(js|css|xml|jpg|jpeg|gif|png)$' . PHP_EOL;
// don't use cache on our cache bot
$rules .= 'RewriteCond %{HTTP_USER_AGENT} !('.VIVIO_SWIFT_CACHE_BOT_NAME.')' . PHP_EOL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment