simplyadmire/neos-pagecache

此包已弃用且不再维护。作者建议使用flowpack/fullpagecache包。

安装: 155

依赖: 0

建议者: 0

安全: 0

星星: 5

关注者: 4

分支: 1

开放问题: 0

类型:typo3-flow-package

1.1.1 2015-04-24 09:53 UTC

This package is auto-updated.

Last update: 2021-07-13 10:26:13 UTC


README

示例 nginx 重写规则

error_page 418 = @uncached;

location / {

	if ($http_cookie = 'TYPO3_Flow_Session') {
		return 418;
	}

	if ($request_method !~ ^(GET|HEAD)$ ) {
		return 418;
	}

	try_files /_Resources/Cache/SimplyAdmire_Neos_PageCache_PageCache/${host}${request_uri}index.html /_Resources/Cache/SimplyAdmire_Neos_PageCache_PageCache/${host}${request_uri}/index.html $uri $uri/ /index.php?$args;
}

location ~ \.php$ {
	include fastcgi_params;
	fastcgi_pass unix:/opt/local/var/run/php55/php5-fpm-flow.sock;
	fastcgi_index index.php;

	fastcgi_param FLOW_CONTEXT Production;
	fastcgi_param FLOW_REWRITEURLS 1;

	fastcgi_split_path_info ^(.+\.php)(.*)$;
	fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
	fastcgi_param PATH_INFO $fastcgi_path_info;
}

location @uncached {
	try_files $uri $uri/ /index.php?$args;
}