草庐IT

CACHE_DIR

全部标签

php - Laravel:非复合名称 'Cache' 的 use 语句无效

这个问题在这里已经有了答案:Laravel/Composer:Theusestatementwithnon-compoundname(1个回答)关闭5年前。我有centos7php56laravel5和memcached但是当尝试使用缓存在routes.php我得到:ErrorExceptioninroutes.phpline3:Theusestatementwithnon-compoundname'Cache'hasnoeffect路由器.php

php - SessionHandler::gc():ps_files_cleanup_dir |权限被拒绝 (13)

我在CentoOS(WHM/CPANEL)和Prestashop1.7中遇到PHP7问题系统给我这个消息:Noticeonline429infile/home/onywf3fr9a/public_html/app/cache/dev/classes.php[8]SessionHandler::gc():ps_files_cleanup_dir:opendir(/var/cpanel/php/sessions/ea-php70)失败:权限被拒绝(13) 最佳答案 背景当PHP尝试对过期的session进行垃圾回收,但包含session

PHP - 具有相对路径的 include() 或 require() 在 Windows 上不起作用,即使在附加 __DIR__ 时也是如此

我在这里读到有关在将include()或required()与相对路径一起使用时PHP中出现的问题,我看到的所有解决方案都是附加DIR我目前在Windows上工作,尽管错误消息显示了DIR的当前值,但相对路径似乎是作为字符串添加的,而不是向上一级,例如:include(__DIR__."..\\another_folder\\file_2.php");产生以下错误:警告:包括(C:\xampp\htdocs\main_folder..\another_folder\file_2.php)[function.include]:无法打开流:在中没有这样的文件或目录知道发生了什么吗?

php - Apache、mod_cache 和 Cookies

我正在考虑使用mod_cache。但是,我希望由Apache缓存的页面(由php生成)通常包含该用户的登录名(“您以...登录”)。所以我不能只为所有用户缓存一个页面。登录状态由cookie确定。所以我想我可以(在PHP中)在每个页面中包含一个“Vary:Cookie”header。如果我对RFC2616的理解是正确的,这应该指示Apache(或任何其他)缓存算法为用户代理发送的每个单独的Cookie值缓存一个单独的页面。因此,如果浏览器未发送任何cookie(用户已注销),则缓存的响应将与缓存的响应分开保存,以响应带有Cookie的请求:state=89898XAAJ(用户以“Jac

php - 大图像文件夹使 Symfony 崩溃 "cache:clear"并出现 OutOfMemoryException

当我将一个大图像文件夹放入我的/web文件夹时,"cache"clear"命令失败并显示"OutOfMemoryException"PHPFatalerror:Allowedmemorysizeof536870912bytesexhausted(triedtoallocate151552bytes)in/Users/john/Development/git/website/vendor/twig/twig/lib/Twig/Compiler.phponline124[Symfony\Component\Debug\Exception\OutOfMemoryException]Error

php - Laravel 6 artisan 包 :discover rename bootstrap/cache/packages

在composerupdate之后我得到一个错误:InFilesystem.phpline146:rename(/var/www/bootstrap/cache/packages.phpE7r5E4,/var/www/bootstrap/cache/packages.php):NosuchfileordirectoryArtisan命令不再有效。已经尝试过:composerducomposerinstallcomposerupdate 最佳答案 我发现了问题,我的windowsdocker(版本2.1.0.3)有时无法执行。我不知道

php - CakePHP 2.0 应用程序 : Intermittently unable to write to Memcache cache error messages

我有一个健康、低流量的暂存服务器和一个CakePHP应用程序。我在本地主机上运行Memcached,所有Cake缓存都使用Memcache作为缓存引擎。每隔一两个小时(比如每1-2周一次),我会看到如下错误:Warning(512):_cake_model_cachewasunabletowrite'default_read_users'toMemcachecache[CORE/Cake/Cache/Cache.php,line309]Warning(512):_cake_core_cachewasunabletowrite'file_map'toMemcachecache[CORE/

php - 警告 : session_start(): Cannot send session cache limiter - headers already sent

我收到一个很常见的错误。Warning:session_start():Cannotsendsessioncookie-headersalreadysentby(outputstartedat/home/sabarspinmatic/public_html/testing/index.php:1)in/home/sabarspinmatic/public_html/testing/index.phponline1但奇怪的是我只有一个php文件,其中只有1行session_start()。PHP代码是:谁能知道我为什么会收到这个错误。我检查了源代码及其显示.我不知道为什么会显示这个标签。

php - Composer 未复制到指定的 bin-dir 目录

我有时会遇到这个问题,在windows、mac、ubuntu上...我有这个composer.json:{"name":"laravel/laravel","description":"TheLaravelFramework.","keywords":["framework","laravel"],"license":"MIT","require":{"laravel/framework":"4.2.*","zizaco/confide":"~4.0@dev","zizaco/entrust":"1.2.*@dev","guzzlehttp/guzzle":"~4.0"},"requi

php - Laravel 类 'Memcached' 未找到 Illuminate\Cache\MemcachedConnector.php 第 44 行

我刚刚从我的计算机上的BitBucket克隆了我的git存储库以刷新我的站点目录,并尝试了一个composer安装/更新让我自己恢复到原来的状态。我现在面临:{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class'Memcached'notfound","file":"\/Users\/Ed\/Sites\/metinet_api\/vendor\/laravel\/framework\/src\/Illuminate\/Cache\/MemcachedC