doter1995 2016-08-09 23:28
浏览 64

PHP Require_once内存优化

I am currently considering using APC to cache my PHP code into memory so I can optimize my server performance. But one thing that concern me is my code that looks like

$a = $_GET['foo']; require_once '$a';

My intention of the script above is to reduce number of file need to be loaded (based on request, different class file) so I can improve the IO process. Does APC able to work well in this situation? if so, please help me to recommend your favourite APC.

Thanks.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 错误 LNK2001 无法解析的外部符号
    • ¥50 安装pyaudiokits失败
    • ¥15 计组这些题应该咋做呀
    • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
    • ¥15 让node服务器有自动加载文件的功能
    • ¥15 jmeter脚本回放有的是对的有的是错的
    • ¥15 r语言蛋白组学相关问题
    • ¥15 Python时间序列如何拟合疏系数模型
    • ¥15 求学软件的前人们指明方向🥺
    • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接