GVKun编程网logo

为什么对某些php文件的更改需要很长时间才能在实时网站上显示(php文件修改后,打开还是显示以前的页面)

2

在本文中,您将会了解到关于为什么对某些php文件的更改需要很长时间才能在实时网站上显示的新资讯,同时我们还将为您解释php文件修改后,打开还是显示以前的页面的相关在本文中,我们将带你探索为什么对某些p

在本文中,您将会了解到关于为什么对某些php文件的更改需要很长时间才能在实时网站上显示的新资讯,同时我们还将为您解释php文件修改后,打开还是显示以前的页面的相关在本文中,我们将带你探索为什么对某些php文件的更改需要很长时间才能在实时网站上显示的奥秘,分析php文件修改后,打开还是显示以前的页面的特点,并给出一些关于.htaccess更改需要多长时间才能生效?、android – CalendarView需要很长时间才能显示、android – 推送通知需要很长时间才能到达、android – 模拟器需要很长时间才能启动的实用技巧。

本文目录一览:

为什么对某些php文件的更改需要很长时间才能在实时网站上显示(php文件修改后,打开还是显示以前的页面)

为什么对某些php文件的更改需要很长时间才能在实时网站上显示(php文件修改后,打开还是显示以前的页面)

我正在使用wordpress.有时,当我更新主题中的某些PHP文件时,更改会立即显示在实时网站上(例如header.PHP).但是,当我对CSS文件夹(skin.PHP)中的PHP文件进行更改时,这些更改可能需要几个小时才能反映在实时网站中.知道为什么这需要这么长时间,如果有任何强迫它更新.听起来像一个缓存问题,但我已经清除了我的本地缓存并尝试了其他从未访问过这个网站的浏览器,并且没有显示更改.那么服务器上可能有某种类型的缓存?我没有使用任何缓存插件.

示例站点,如果这有帮助. http://freemanep.com/

谢谢.

解决方法:

我使用Mark Jaquith的解决方案(参见here)来阻止我的样式表被缓存.不确定它适用于您的情况,因为它发生在新的浏览器上,但它值得一试.

实质上,您将文件修改时间戳附加到URL,因此当文件更改时,浏览器会认为URL已更改并下载最新版本. Mark的例子,主题样式表:

<link rel="stylesheet" href="<?PHP bloginfo('stylesheet_url'); echo '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>" type="text/css" media="screen, projection" />

.htaccess更改需要多长时间才能生效?

.htaccess更改需要多长时间才能生效?

我已经添加url重写规则到我的.htaccess文件。 我应该看到这些改变马上工作吗?

PHP,htaccess:在URL中应用页面标题

如果端口不是80,.htaccess将redirect到错误页面

我的网站遭到黑客入侵,htaccess文件被盗用,应该是什么样子?

url百分比编码不起作用

MVC htaccess重写

.htaccess的更改是即时的,不需要重新启动。 通常情况下,如果你没有看到你对.htaccess改变的期望,那么你有一个语法错误,应该检查Apache的日志以了解发生了什么。

NVM 发现它 。

.htaccess文件遵循与主配置文件相同的语法。 由于每个请求都会读取.htaccess文件,因此在这些文件中所做的更改将立即生效。

如果您使用重定向301,请清除浏览器缓存。

显然,有些服务器只会定期检查.htaccess文件。 我发现这是我们的AWS主机的情况。

我的来源只是在这里回答下面的评论,但它符合我的经验和其他人似乎同意。

总结

以上是小编为你收集整理的.htaccess更改需要多长时间才能生效?全部内容。

如果觉得小编网站内容还不错,欢迎将小编网站推荐给好友。

android – CalendarView需要很长时间才能显示

android – CalendarView需要很长时间才能显示

我正在使用CalendarView上的应用程序.
我必须以小线性布局显示calendarView.

显示整个页面时出现问题,该页面包含小线性布局中的calendarView.
– >这需要10秒才能显示,&这是很多时间……

布局中没有其他东西.

这是我的xml和snap …

任何帮助都会受到强烈关注……

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:orientation="vertical" >

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="0dp"
                android:layout_weight="30"
                android:paddingLeft="30dp" >

                <TextView
                    android:id="@+id/txtDate"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="My Calendar"
                    android:textSize="50sp" />

                <View
                    android:layout_width="fill_parent"
                    android:layout_height="2dp"
                    android:layout_alignParentBottom="true"
                    android:layout_marginBottom="40dp"
                    android:layout_marginRight="30dp"
                    android:background="@android:color/black" />
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="0dp"
                android:layout_weight="70"
                android:paddingBottom="30dp"
                android:paddingLeft="20dp"
                android:paddingRight="20dp"
                android:paddingTop="30dp" >

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:gravity="center"
                    android:orientation="vertical" >

                    <ListView
                        android:id="@+id/list_task"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content" >
                    </ListView>
                </LinearLayout>
            </RelativeLayout>
        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:orientation="vertical" >

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="0dp"
                android:layout_weight="30" >

                <CalendarView
                    android:id="@+id/cal_small"
                    android:layout_width="250dp"
                    android:layout_height="250dp"
                    android:layout_centerHorizontal="true"
                    android:background="@android:color/darker_gray"
                    android:showWeekNumber="false"
                    android:animateLayoutChanges="false"
                    android:clipChildren="false"
                    android:drawingCacheQuality="low"
                    android:soundEffectsEnabled="false"
                    android:hapticFeedbackEnabled="false"
                     />

                <View
                    android:layout_width="fill_parent"
                    android:layout_height="2dp"
                    android:layout_alignParentBottom="true"
                    android:layout_marginBottom="40dp"
                    android:layout_marginLeft="30dp"
                    android:layout_marginRight="30dp"
                    android:background="@android:color/black" />
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="0dp"
                android:layout_weight="70" >

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginBottom="30dp"
                    android:layout_marginRight="10dp"
                    android:layout_marginTop="30dp"
                    android:orientation="vertical" >

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="0dp"
                        android:layout_weight="8" >

                        <ListView
                            android:id="@+id/list1"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:paddingLeft="30dp" >
                        </ListView>
                    </LinearLayout>

                    <ListView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content" >
                    </ListView>
                </LinearLayout>
            </RelativeLayout>
        </LinearLayout>
    </LinearLayout>

</LinearLayout>

解决方法

看起来非常简单,但我不小心测试了这个,它运作良好.我希望这也会对你有所帮助……

首先创建单独的xml文件,该文件仅包含CalendarView.名为“cal_view.xml”

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <android.widget.CalendarView
        android:layout_width="200dp"
        android:layout_height="200dp" />

</LinearLayout>

然后将此xml文件包含在主xml文件中,如下所示.
而不是您的CalanderView,包括xml文件.

<include
     android:id="@+id/subCategory"
     layout="@layout/cal_view" />

android – 推送通知需要很长时间才能到达

android – 推送通知需要很长时间才能到达

iOS和 Android的adobe air应用程序中的推送通知存在一个奇怪的问题.

我正在使用Milkman Games的Easy Push ANE以及One Signal服务.

问题是通知确实到达,但有时(随机),消息发送后可能需要15分钟才能到达设备.

这对我的应用程序(出租车预订应用程序)至关重要,因为我依赖于出租车应用程序和用户应用程序之间通信的推送通知.因此,例如,如果用户请求出租车,则可能需要长达15分钟才能通知出租车应用程序.

与One Signal支持人员交谈,根据他们的说法,一切都很好,如果我查看One Signal仪表板,通知几乎会立即发送.

这种延误可能是什么原因?我能做些什么才能让事情变得更好?

谢谢.

解决方法

通常推送通知确实很快到达.但是在一些罕见的情况下,我们看到它们被推迟了:

Android设备上的通知延迟:

>一些家用和商用wifi路由器将导致设备与Google的GCM服务器的连接关闭.设备稍后重新打开连接并接收延迟通知. (在这里讨论:https://groups.google.com/forum/#!topic/android-gcm/Y33c9ib54jY)
>某些自定义版本的Android操作系统具有省电设置,可能会导致通知被延迟或忽略.例如,索尼Xperia设备具有“Stamina模式”. (在这里讨论:https://talk.sonymobile.com/t5/Xperia-Z3-Compact/Notifications-not-Working-When-Phone-in-Sleep-Mode/td-p/879641)
>某些Android设备在电池电量不足时可以进入低功耗模式,这可能会导致接收通知时出现轻微延迟.

iOS设备上的通知延迟:

>使用开发配置文件向设备构建发送通知时,Apple的APNS服务器有时可能不那么快或不可靠.您可以将使用AdHoc配置文件构建的应用版本与生产推送证书进行比较,看看它是否更有效.在不久的将来,Apple将改变这个系统的工作方式,因此这个问题将会消失.
>与Android一样,一些wifi路由器会导致iOS通知传递延迟.
>如果为应用选中“限制后台数据”,如果在高级设置中打开了Wifi-Optimization,或者启用了优先模式,则通知可能会延迟.

WhatsApp在其常见问题解答页面底部有一个很好的解决延迟Android和iOS通知的说明列表:https://www.whatsapp.com/faq/en/android/20887936

总的来说,上述问题很少见,几乎所有用户都会及时收到通知.但是,对于您的特定用例,您可能会发现文本消息是一个更可靠的工具.

android – 模拟器需要很长时间才能启动

android – 模拟器需要很长时间才能启动

每当我尝试启动我的模拟器时,它都会启动但只显示 android徽标,等待很多小时后它也无效.

器件-3.2“QVGA(ADP2)320 * 480(mdpi)
API等级-17

解决方法

尝试为其分配更多内存. Android模拟器的速度非常慢,但是如果你没有给它足够的内存,它就有能力永不加载.

今天的关于为什么对某些php文件的更改需要很长时间才能在实时网站上显示php文件修改后,打开还是显示以前的页面的分享已经结束,谢谢您的关注,如果想了解更多关于.htaccess更改需要多长时间才能生效?、android – CalendarView需要很长时间才能显示、android – 推送通知需要很长时间才能到达、android – 模拟器需要很长时间才能启动的相关知识,请在本站进行查询。

本文标签: