Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-wp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai
noblogs-wp
Commits
9040d295
Commit
9040d295
authored
14 years ago
by
root
Committed by
agata
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add cruft needed by wp-super-cache
parent
5ea14ec4
Branches
Branches containing commit
No related tags found
1 merge request
!3
Noblogs 5.4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wp-content/advanced-cache.php
+12
-0
12 additions, 0 deletions
wp-content/advanced-cache.php
wp-content/wp-cache-config.php
+108
-0
108 additions, 0 deletions
wp-content/wp-cache-config.php
with
120 additions
and
0 deletions
wp-content/advanced-cache.php
0 → 100644
+
12
−
0
View file @
9040d295
<?php
# WP SUPER CACHE 0.8.9.1
function
wpcache_broken_message
()
{
if
(
false
==
strpos
(
$_SERVER
[
'REQUEST_URI'
],
'wp-admin'
)
)
echo
"<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->"
;
}
if
(
!
include_once
(
WP_CONTENT_DIR
.
'/plugins/wp-super-cache/wp-cache-phase1.php'
)
)
{
if
(
!@
is_file
(
WP_CONTENT_DIR
.
'/plugins/wp-super-cache/wp-cache-phase1.php'
)
)
register_shutdown_function
(
'wpcache_broken_message'
);
}
?>
This diff is collapsed.
Click to expand it.
wp-content/wp-cache-config.php
0 → 100644
+
108
−
0
View file @
9040d295
<?php
/*
WP-Cache Config Sample File
See wp-cache.php for author details.
*/
$wp_cache_mobile_groups
=
''
;
//Added by WP-Cache Manager
$wp_cache_mobile_prefixes
=
'w3c , w3c-, acs-, alav, alca, amoi, audi, avan, benq, bird, blac, blaz, brew, cell, cldc, cmd-, dang, doco, eric, hipt, htc_, inno, ipaq, ipod, jigs, kddi, keji, leno, lg-c, lg-d, lg-g, lge-, lg/u, maui, maxo, midp, mits, mmef, mobi, mot-, moto, mwbp, nec-, newt, noki, palm, pana, pant, phil, play, port, prox, qwap, sage, sams, sany, sch-, sec-, send, seri, sgh-, shar, sie-, siem, smal, smar, sony, sph-, symb, t-mo, teli, tim-, tosh, tsm-, upg1, upsi, vk-v, voda, wap-, wapa, wapi, wapp, wapr, webc, winw, winw, xda , xda-'
;
//Added by WP-Cache Manager
$wp_cache_refresh_single_only
=
'0'
;
//Added by WP-Cache Manager
$wp_cache_slash_check
=
1
;
//Added by WP-Cache Manager
if
(
!
defined
(
'WPCACHEHOME'
)
)
define
(
'WPCACHEHOME'
,
WP_CONTENT_DIR
.
"/plugins/wp-super-cache/"
);
//Added by WP-Cache Manager
$cache_compression
=
0
;
// Super cache compression
$cache_enabled
=
true
;
//Added by WP-Cache Manager
$super_cache_enabled
=
true
;
//Added by WP-Cache Manager
$cache_max_time
=
300
;
//Added by WP-Cache Manager
//$use_flock = true; // Set it true or false if you know what to use
$cache_path
=
WP_CONTENT_DIR
.
'/cache/'
;
$file_prefix
=
'wp-cache-'
;
// We want to be able to identify each blog in a WordPress MU install
$blogcacheid
=
''
;
if
(
defined
(
'VHOST'
)
)
{
$blogcacheid
=
'blog'
;
// main blog
if
(
constant
(
'VHOST'
)
==
'yes'
)
{
$blogcacheid
=
$_SERVER
[
'HTTP_HOST'
];
}
else
{
$request_uri
=
preg_replace
(
'/[ <>\'\"\r\n\t\(\)]/'
,
''
,
str_replace
(
'..'
,
''
,
$_SERVER
[
'REQUEST_URI'
]
)
);
if
(
strpos
(
$request_uri
,
'/'
,
1
)
)
{
if
(
$base
==
'/'
)
{
$blogcacheid
=
substr
(
$request_uri
,
1
,
strpos
(
$request_uri
,
'/'
,
1
)
-
1
);
}
else
{
$blogcacheid
=
str_replace
(
$base
,
''
,
$request_uri
);
$blogcacheid
=
substr
(
$blogcacheid
,
0
,
strpos
(
$blogcacheid
,
'/'
,
1
)
);
}
if
(
'/'
==
substr
(
$blogcacheid
,
-
1
))
$blogcacheid
=
substr
(
$blogcacheid
,
0
,
-
1
);
}
$blogcacheid
=
str_replace
(
'/'
,
''
,
$blogcacheid
);
}
}
// Array of files that have 'wp-' but should still be cached
$cache_acceptable_files
=
array
(
'wp-comments-popup.php'
,
'wp-links-opml.php'
,
'wp-locations.php'
);
$cache_rejected_uri
=
array
(
'wp-.*\\.php'
,
'index\\.php'
);
$cache_rejected_user_agent
=
array
(
0
=>
'bot'
,
1
=>
'ia_archive'
,
2
=>
'slurp'
,
3
=>
'crawl'
,
4
=>
'spider'
,
5
=>
'Yandex'
);
$cache_rebuild_files
=
1
;
//Added by WP-Cache Manager
// Disable the file locking system.
// If you are experiencing problems with clearing or creating cache files
// uncommenting this may help.
$wp_cache_mutex_disabled
=
1
;
//Added by WP-Cache Manager
// Just modify it if you have conflicts with semaphores
$sem_id
=
942817292
;
//Added by WP-Cache Manager
if
(
'/'
!=
substr
(
$cache_path
,
-
1
))
{
$cache_path
.
=
'/'
;
}
$wp_cache_mobile
=
0
;
$wp_cache_mobile_whitelist
=
'Stand Alone/QNws'
;
$wp_cache_mobile_browsers
=
'2.0 MMP, 240x320, 400X240, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, Googlebot-Mobile, hiptop, IEMobile, KYOCERA/WX310K, LG/U990, MIDP-2., MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, PlayStation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, SHG-i900, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, webOS, Windows CE, WinWAP, YahooSeeker/M1A1-R2D2, iPhone, iPod, Android, BlackBerry9530, LG-TU915 Obigo, LGE VX, webOS, Nokia5800'
;
//Added by WP-Cache Manager
// gzip the first page generated for clients that support it.
$wp_cache_gzip_first
=
0
;
// change to relocate the supercache plugins directory
$wp_cache_plugins_dir
=
WPCACHEHOME
.
'plugins'
;
// set to 1 to do garbage collection during normal process shutdown instead of wp-cron
$wp_cache_shutdown_gc
=
0
;
$wp_super_cache_late_init
=
0
;
// uncomment the next line to enable advanced debugging features
$wp_super_cache_advanced_debug
=
0
;
$wp_super_cache_front_page_text
=
''
;
$wp_super_cache_front_page_clear
=
0
;
$wp_super_cache_front_page_check
=
0
;
$wp_super_cache_front_page_notification
=
'0'
;
$wp_cache_object_cache
=
0
;
//Added by WP-Cache Manager
$wp_cache_anon_only
=
0
;
$wp_supercache_cache_list
=
0
;
//Added by WP-Cache Manager
$wp_cache_debug_to_file
=
0
;
$wp_super_cache_debug
=
0
;
$wp_cache_debug_level
=
5
;
$wp_cache_debug_ip
=
''
;
$wp_cache_debug_log
=
''
;
$wp_cache_debug_email
=
''
;
$wp_cache_pages
[
"search"
]
=
0
;
$wp_cache_pages
[
"feed"
]
=
0
;
$wp_cache_pages
[
"category"
]
=
0
;
$wp_cache_pages
[
"home"
]
=
0
;
$wp_cache_pages
[
"frontpage"
]
=
0
;
$wp_cache_pages
[
"tag"
]
=
0
;
$wp_cache_pages
[
"archives"
]
=
0
;
$wp_cache_pages
[
"pages"
]
=
0
;
$wp_cache_pages
[
"single"
]
=
0
;
$wp_cache_hide_donation
=
1
;
//Added by WP-Cache Manager
$wp_cache_not_logged_in
=
1
;
//Added by WP-Cache Manager
$wp_cache_clear_on_post_edit
=
0
;
//Added by WP-Cache Manager
$wp_cache_hello_world
=
0
;
//Added by WP-Cache Manager
$wp_cache_mobile_enabled
=
1
;
//Added by WP-Cache Manager
$wp_cache_cron_check
=
1
;
//Added by WP-Cache Manager
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment